package com.controller.exception.resolve;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver;

/**
 * 实现 HandlerExceptionResolver 实现自定义异常处理
 * 
 * @author Administrator
 *
 */
public class MyExceptionResolve2 implements HandlerExceptionResolver {

	@Override
	public ModelAndView resolveException(HttpServletRequest paramHttpServletRequest,
			HttpServletResponse paramHttpServletResponse, Object paramObject, Exception paramException) {
		return new ModelAndView("error");
	}

}
